/// 应用主题配置
/// 
/// 定义应用的明亮和暗黑主题样式
/// 使用Material 3设计规范
/// 
/// 作者: Fluttert Team
/// 日期: 2024

import 'package:flutter/material.dart';

/// 应用主题类
/// 
/// 提供静态方法获取明暗主题配置
class AppTheme {
  /// 获取明亮主题配置
  /// 
  /// 返回Material 3风格的明亮主题
  /// 使用蓝色作为主色调
  static ThemeData get lightTheme {
    return ThemeData(
      useMaterial3: true,
      colorScheme: ColorScheme.fromSeed(
        seedColor: Colors.blue,
        brightness: Brightness.light,
      ),
      appBarTheme: const AppBarTheme(
        centerTitle: true,
        elevation: 0,
      ),
    );
  }

  /// 获取暗黑主题配置
  /// 
  /// 返回Material 3风格的暗黑主题
  /// 使用蓝色作为主色调
  static ThemeData get darkTheme {
    return ThemeData(
      useMaterial3: true,
      colorScheme: ColorScheme.fromSeed(
        seedColor: Colors.blue,
        brightness: Brightness.dark,
      ),
      appBarTheme: const AppBarTheme(
        centerTitle: true,
        elevation: 0,
      ),
    );
  }
}

